    package com.xindong.paking.utils;

import java.util.Map;

public class UserInfoUtil {
    public static ThreadLocal<Map<String, Object>> threadLocal = new ThreadLocal();

    public static void setUserInfo(Map<String,Object> map){
        threadLocal.set(map);
    }

    public static Map<String,Object> getUserInfo(){
        return threadLocal.get();
    }

    public static void removeUser() {
        threadLocal.remove();
    }
}
